import { useState } from 'react'

function App() {
  // 原始数据类型
  const [val, toggle] = useState(false)
  toggle(false)
  // 对象类型
  const [user, setUser] = useState({
    name: 'jack',
    age: 18
  })
  setUser({name:'maofu',age:21})
  
  return <div>{val}</div>
}

export { App }
